﻿using System.ComponentModel.DataAnnotations.Schema;
using Volo.Abp.Domain.Entities;

namespace CommonManagement
{
    /// <summary>
    /// 分时类
    /// </summary>
    public class Division : Entity<int>
    {
        /// <summary>天气编号</summary>
        public int ForecastId { get; set; }

        /// <summary>时</summary>
        public string Hour { get; set; }
        
        /// <summary>天气</summary>
        public string Weather { get; set; }

        /// <summary>温度</summary>
        public int Temperature { get; set; }

        /// <summary>天气</summary>
        [ForeignKey("ForecastId")]
        public Weather Forecast { get; set; }

        private Division() { }
    }
}